package la.iok.hzsvn.lewin.movie.core.model;

import java.util.Date;
import java.util.Objects;

public class UserRoleVo {
    /**
     * 组织id
     */
    private Long orgUnitId;
    /**
     * 角色
     */
    private String role;
    /**
     * 获取权限的时间
     */
    private Date addTime;

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserRoleVo that = (UserRoleVo) o;
        return Objects.equals(orgUnitId, that.orgUnitId) && Objects.equals(role, that.role);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orgUnitId, role);
    }
}
